/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package rallyracer;

/**
 *
 * @author samra_000
 */
public class DuplicateDataPointInSegmentException extends RacingException
{
    Segment segment;
    DataPoint currentPoint;
    DataPoint collidingPoint;

    public DuplicateDataPointInSegmentException(String message, Segment s, DataPoint currentPoint, DataPoint collidingPoint )
    {
        super(message);
        this.segment = s;
        this.currentPoint = currentPoint;
        this.collidingPoint = collidingPoint;
    }
}
